package nc.impl.fip.xgtz;

import nc.bs.fip.xgtz.bp.SynchronizeFipRelationBP;
import nc.itf.fip.xgtz.IFipRelationMaintain;
import nc.vo.pubapp.pattern.exception.ExceptionUtils;

public class FipRelationMaintainImpl implements IFipRelationMaintain {

	@Override
	public int synchronizerelation() {
		SynchronizeFipRelationBP bp = new SynchronizeFipRelationBP();
		int num = -1;
		try {
			num = bp.synchronizerelation();
		} catch (Exception e) {
			ExceptionUtils.wrappException(e);
		}
		
		return num;
	}

	@Override
	public int deleteRelationByDr() {
		SynchronizeFipRelationBP bp = new SynchronizeFipRelationBP();
		int num = -1;
		try {
			num = bp.deleteRelationByDr();
		} catch (Exception e) {
			ExceptionUtils.wrappException(e);
		}
		return num;
	}

	@Override
	public int queryRelationByDr() {
		SynchronizeFipRelationBP bp = new SynchronizeFipRelationBP();
		int num = -1;
		try {
			num = bp.queryRelationByDr();
		} catch (Exception e) {
			ExceptionUtils.wrappException(e);
		}
		return num;
	}

}
